Global Index
HTML5 JS API Index > ECMAScript Tutorials & Specs

Error

Extended by EvalError, RangeError, ReferenceError, SyntaxError, TypeError, URIError, NativeError

Instances of Error objects are thrown as exceptions when runtime errors occur. The Error objects may also serve as base objects for user-defined exception classes.

Properties
string
message
The initial value of Error.prototype.message is the empty String.
string
name
The initial value of Error.prototype.name is "Error".
Constructor
Error(string message)